/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.wpi.first.wpilibj.templates;

/**
 *
 * @author Administrator
 */
public class safetyState extends CannonState {
    private final boolean compresserOn = false;
    private final boolean fillValveOn = true;
    private final boolean DumpValveOn = true;
    private final boolean FireValve1On = false;
    private final boolean FireValve2On = false;
    private final boolean LightOn = false;

    public void updateState() {
        if (super.MyController.disabledButton()) {
        super.MyController.currentState = super.MyController.disabled;
            super.MyController.CannonTimer.reset();
}


    }
    public void UpdatePneumatics() {
        super.PneumaticSystem.compressorOn = compresserOn;
        super.PneumaticSystem.fillValveOn = fillValveOn;
        super.PneumaticSystem.dumpValveOn = DumpValveOn;
        super.PneumaticSystem.fireValve1On = FireValve1On;
        super.PneumaticSystem.fireValve2On = FireValve2On;
        super.PneumaticSystem.lightOff = !LightOn;
    }
    public String ToString() {
        return "safety";
    }

}
